/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <iostream>
#define INF 10000
using namespace std;

int main_30()
{
    int n,x,kase=0;
    while (scanf("%d",&n)!=EOF&&n)
    {
        int s=0,min_val=INF,max_val=-INF;
        for (int i=0;i<n ;++i )
        {
            scanf("%d",&x);
            s+=x;
            if (x>max_val)
            {
                max_val=x;
            }
            if (x<min_val)
            {
                min_val=x;
            }
        }
        if (kase)
        {
            printf("\n");
        }
        printf("Case %d: %d %d %.3f\n",++kase,min_val,max_val,(double)s/n);
    }
	return 0;
}
